package com.gipson.amc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gipson.amc.entity.PageByDataTable;
import com.gipson.amc.entity.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 用户权限 Mapper 接口
 * </p>
 *
 * @author xsyuan
 * @since 2020-03-27
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    IPage<UserRole> queryPageData(Page<UserRole> page, @Param("userRole") UserRole userRole , @Param("pageByDataTable") PageByDataTable pageByDataTable);

    void deleteUserRole(@Param("mapParam") Map<Object, Object> map);
    
    void deleteByUserIds(@Param("userIds") String[] userIds);

    UserRole findByMap(@Param("mapParam") Map<Object, Object> map);

}
